<?php

class ArticleAction extends Action
{

    public function index()
    {
        $article = D("Article")->getById(intval($_GET['id']));
        $this->assign($article);
        $this->display("Article:index");
    }

}

?>